<?php
class Usuarios_Form_CambiarEstado extends Form_Base{
	
		
	public function __construct($options = null) {
		parent::__construct($options);
	}
	
	public function init() {
		$domConfig = Zend_Registry::get('domConfig');
		
		$this->setName('cambiarestado');
		$this->setMethod("post");
		$this->setAttrib("class","highlight");
		
		$codusuario = new Zend_Form_Element_Hidden("codusuario");
		$estado		= new Zend_Form_Element_Hidden("estado");
		
		$texto = new Zend_Form_Element_Textarea('justificacion');
		$texto->setLabel('Observación :');
		$texto->setRequired(true);
		$texto->addFilter('StripTags');
		$texto->addFilter('StringTrim');
		$texto->setAttrib("rows",5);
		$texto->setAttrib("cols",90);
                         
		$submit = new Zend_Form_Element_Submit ( 'btnSubmit' );
		$submit->setValue('Guardar');
		$submit->setLabel("Cambiar estado");
		$submit->setAttrib("class", "iceCmdBtn");
		
		$this->addElements ( array ( $codusuario,
									 $estado,
									 $texto,
									 $submit
								 ) );
		
		$this->loadTableDecorators();
	}

}